package com.annotation.demo5;

/**
 * @ClassName Lion
 * @Description 狮子
 * @Author Kx
 * @Date 2025/3/30 16:07
 * @Version 1.0
 */
@Sleep(value="健康")
@Health(value="优")
public class Lion extends Mammal {
    private String name;

    public Lion() {

    }
    public Lion(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /***
     * @author: kx
     * @date: 2025/3/30 15:04
     * @description: 狮子的吃方法
     */
    @Override
    public void eat() {
       super.eat();
    }

    /***
     * @author: kx
     * @date: 2025/3/31 15:15
     * @description: 狮子的睡眠方法
    */
    @Override
    public void sleep() {
        super.sleep();
    }
}
